import request from '@/utils/request'

let serviceApi = {
    /*聊天用户列表*/
    servicelist(data, errorback) {
        return request._post('/server/chat.chat/index', data, errorback);
    },
    /*聊天记录列表*/
    recordlist(data, errorback) {
        return request._post('/server/chat.chat/record', data, errorback);
    },
    /*用户信息*/
    getinfo(data, errorback) {
        return request._post('/server/chat.chat/getInfo', data, errorback);
    },
    /*聊天移除*/
    remove(data, errorback) {
        return request._post('/server/chat.chat/remove', data, errorback);
    },
	/*聊天移除*/
	bindClient(data, errorback) {
	    return request._post('/server/chat.chat/bindClient', data, errorback);
	},
}

export default serviceApi;
